#include "DIVA_VMStub.h"
#include "ReferenceVM.h"
class xVMRelationStructStub
{
private:
	static xVMRelationStructStub *singleton;
	xVMRelationStructStub();

public:
	static xVMRelationStructStub*  getInstance() ;
	std::vector<DIVA_VMStub *> get_subVMs(DIVA_VMStub *vm);
	std::vector<std::string> get_subVMsVarname(std::string str);
	bool isPointedNULL(ReferenceVM *vm);
	std::vector<DIVA_VMStub *> VMRS_getAllVM();
	DIVA_VMStub* get_pointedVM(ReferenceVM *vm);
	std::vector<DIVA_VMStub *> VMRS_searchVMByVarname(std::string varname);
};

